#include <stdio.h>
#include <stdlib.h>
#include "model.h"

void setView(Model *model)
{
#include "modelView.c"
}

int main(void)
{
  char buf[1024];
  Model model;

  modelSetId(&model,12);
  modelSetName(&model,"ouxess");

  printf("Content-type: text/html; charset=iso-8859-1\n\n");

printf("GET: %s<br>",getenv("QUERY_STRING"));
printf("POST: content length %d<br>",getenv("CONTENT_LENGTH"));

while(!feof(stdin))
{
  gets(buf);
  puts(buf);
}

  setView(&model);

  return 0;
}
